import { Entity, Column, Unique, Index } from 'typeorm'
import { BaseEntity } from '../global'

@Entity('user_devices')
export class UserDevices extends BaseEntity {
    @Column({ length: 32, comment: 'userid' })
    userid: string

    @Column({ length: 128, comment: '设备唯一ID' })
    devid: string

    @Column({ length: 512, comment: '设备名' })
    devName: string

    @Column({ default: 1, comment: '鉴权次数' })
    devAuth: number

    @Column({ default: 1, comment: '登录次数' })
    devLogin: number
}
